﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace 线程池
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 0; i < 10; i++)
            {
                ThreadPool.QueueUserWorkItem((o) =>
               {
                   
                       Console.WriteLine(i + "_" + Thread.CurrentThread.GetHashCode());
                       Thread.Sleep(1);
                  
               }); 
            }
            
            Console.ReadKey();
        }
    }
}
